[
  {
    "id": "MySQL-Instance",
    "configuration": {
      "children": [
        {
          "x": 0,
          "y": 0,
          "w": 6,
          "h": 9,
          "i": "0",
          "type": "Widget",
          "graph": {
            "type": "Card",
            "fontSize": 40,
            "textAlign": "center",
            "showUnit": true
          },
          "widget": {
            "title": "MySQL Uptime"
          },
          "metricConfig": [
            {
              "unit": "day"
            }
          ],
          "expressions": [
            "latest(meter_mysql_instance_uptime)/3600/24"
          ]
        },
        {
          "x": 0,
          "y": 9,
          "w": 6,
          "h": 10,
          "i": "1",
          "type": "Widget",
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "widget": {
            "title": "Current QPS"
          },
          "metricConfig": [
            {
              "label": "QPS"
            }
          ],
          "expressions": [
            "meter_mysql_instance_qps"
          ]
        },
        {
          "x": 12,
          "y": 0,
          "w": 6,
          "h": 9,
          "i": "2",
          "type": "Widget",
          "graph": {
            "type": "Card",
            "fontSize": 40,
            "textAlign": "center",
            "showUnit": true
          },
          "widget": {
            "title": "Innodb Buffer Pool Size"
          },
          "metricConfig": [
            {
              "unit": "MB"
            }
          ],
          "expressions": [
            "latest(meter_mysql_instance_innodb_buffer_pool_size)/1024/1024"
          ]
        },
        {
          "x": 6,
          "y": 0,
          "w": 6,
          "h": 9,
          "i": "3",
          "type": "Widget",
          "graph": {
            "type": "Card",
            "fontSize": 40,
            "textAlign": "center",
            "showUnit": true
          },
          "widget": {
            "title": "Max Connections"
          },
          "expressions": [
            "latest(meter_mysql_instance_max_connections)"
          ]
        },
        {
          "x": 18,
          "y": 0,
          "w": 6,
          "h": 9,
          "i": "4",
          "type": "Widget",
          "graph": {
            "type": "Card",
            "fontSize": 40,
            "textAlign": "center",
            "showUnit": true
          },
          "widget": {
            "title": "Thread Cache Size"
          },
          "expressions": [
            "latest(meter_mysql_instance_thread_cache_size)"
          ]
        },
        {
          "x": 6,
          "y": 9,
          "w": 6,
          "h": 10,
          "i": "5",
          "type": "Widget",
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "widget": {
            "title": "Current TPS"
          },
          "metricConfig": [
            {
              "label": "TPS"
            }
          ],
          "expressions": [
            "meter_mysql_instance_tps"
          ]
        },
        {
          "x": 12,
          "y": 9,
          "w": 6,
          "h": 10,
          "i": "6",
          "type": "Widget",
          "graph": {
            "type": "Area",
            "opacity": 0.4,
            "showXAxis": true,
            "showYAxis": true
          },
          "widget": {
            "title": "Commands Trend (rows per second)"
          },
          "metricConfig": [
            {
              "label": "Insert Rate"
            },
            {
              "label": "Select Rate"
            },
            {
              "label": "Delete Rate"
            },
            {
              "label": "Update Rate"
            }
          ],
          "expressions": [
            "meter_mysql_instance_commands_insert_rate",
            "meter_mysql_instance_commands_select_rate",
            "meter_mysql_instance_commands_delete_rate",
            "meter_mysql_instance_commands_update_rate"
          ]
        },
        {
          "x": 6,
          "y": 19,
          "w": 6,
          "h": 10,
          "i": "7",
          "type": "Widget",
          "graph": {
            "type": "Area",
            "opacity": 0.4,
            "showXAxis": true,
            "showYAxis": true
          },
          "widget": {
            "title": "Threads"
          },
          "metricConfig": [
            {
              "label": "Cached Threads"
            },
            {
              "label": "Running Threads"
            },
            {
              "label": "Created Threads"
            },
            {
              "label": "Connected Threads"
            }
          ],
          "expressions": [
            "meter_mysql_instance_threads_cached",
            "meter_mysql_instance_threads_running",
            "meter_mysql_instance_threads_created",
            "meter_mysql_instance_threads_connected"
          ]
        },
        {
          "x": 0,
          "y": 19,
          "w": 6,
          "h": 10,
          "i": "8",
          "type": "Widget",
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "widget": {
            "title": "Connects"
          },
          "metricConfig": [
            {
              "label": "Available Connects"
            },
            {
              "label": "Aborted Connects"
            }
          ],
          "expressions": [
            "meter_mysql_instance_connects_available",
            "meter_mysql_instance_connects_aborted"
          ]
        },
        {
          "x": 18,
          "y": 9,
          "w": 6,
          "h": 10,
          "i": "10",
          "type": "Widget",
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "widget": {
            "title": "Slow Queries Trend (queries per second)"
          },
          "metricConfig": [
            {
              "label": "Slow Queries Rate"
            }
          ],
          "expressions": [
            "meter_mysql_slow_queries_rate"
          ]
        },
        {
          "x": 12,
          "y": 19,
          "w": 6,
          "h": 10,
          "i": "11",
          "type": "Widget",
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "widget": {
            "title": "Connection Errors"
          },
          "metricConfig": [
            {
              "label": "Internal Errors"
            },
            {
              "label": "Max Connection Errors"
            }
          ],
          "expressions": [
            "meter_mysql_instance_connection_errors_internal",
            "meter_mysql_instance_connection_errors_max_connections"
          ]
        }
      ],
      "layer": "MYSQL",
      "entity": "ServiceInstance",
      "name": "MySQL-Instance",
      "id": "mysql-instance",
      "isRoot": false,
      "isDefault": true,
      "expressions": [
        "avg(meter_mysql_instance_commands_select_rate)",
        "avg(meter_mysql_instance_commands_insert_rate)",
        "avg(meter_mysql_instance_commands_update_rate)",
        "avg(meter_mysql_instance_commands_delete_rate)"
      ],
      "expressionsConfig": [
        {
          "unit": "rows / s",
          "label": "Fetch"
        },
        {
          "unit": "rows / s",
          "label": "Insert"
        },
        {
          "unit": "rows / s",
          "label": "Update"
        },
        {
          "unit": "rows / s",
          "label": "Delete"
        }
      ]
    }
  }
]
